package com.controller;

import com.config.AppConfig;
import com.service.SecnMapper;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Scontroller {

	public static void main(String[] args) {
		//AnnotationCofigurationContext a = new AnnotationCofigurationContext();

		AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(AppConfig.class);
		System.out.println(applicationContext.getBean("secnservice"));
		SecnMapper secnservice = (SecnMapper) applicationContext.getBean("secnservice");
		System.out.println(secnservice.bb);
	}

}
